<?php
/**
 * Created by PhpStorm.
 * User: Krystal
 * Date: 2018/9/3
 * Time: 18:16
 */

namespace app\common\validate;
use think\Validate;

class Map extends Validate
{

    protected $rule = [
        [ 'rid','require' ,'缺少参数rid'],
        [ 'type','require' ,'缺少参数type'],
        [ 'current_longitude','require' ,'缺少参数current_longitude'],
        [ 'current_latitude','require' ,'缺少参数current_latitude'],
        [ 'point_longitude','require' ,'缺少参数point_longitude'],
        [ 'point_latitude','require' ,'缺少参数point_latitude'],
    ];

    protected $scene = [
        'lines_list'   => ['rid'],
        'read'   => ['type','rid','current_longitude','current_latitude','point_longitude','point_latitude'],
    ];
}